package zookeeper.client;

import zookeeper.utils.YamlUtil;

/**
 * 集client基类
 */
public class ClusterBase extends StandaloneBase {
  private static final int CLUSTER_SESSION_TIMEOUT = 60 * 1000;
  private static final String CLUSTER_CONNECT_STR;

  static {
    CLUSTER_CONNECT_STR = YamlUtil.getDefaultClusterConnectStr();
  }

  @Override
  protected String getConnectStr() {
    return CLUSTER_CONNECT_STR;
  }

  @Override
  protected int getSessionTimeout() {
    return CLUSTER_SESSION_TIMEOUT;
  }

}
